import request from '@/utils/request'

// 查询教学方案列表
export function listTeachPlanPeriod(query) {
  return request({
    url: '/teach/teachPlanPeriod/list',
    method: 'get',
    params: query
  })
}

// 查询教学方案详细
export function getTeachPlanPeriod(id) {
  return request({
    url: '/teach/teachPlanPeriod/' + id,
    method: 'get'
  })
}

// 新增教学方案
export function addTeachPlanPeriod(data) {
  return request({
    url: '/teach/teachPlanPeriod',
    method: 'post',
    data: data
  })
}

// 修改教学方案
export function updateTeachPlanPeriod(data) {
  return request({
    url: '/teach/teachPlanPeriod',
    method: 'put',
    data: data
  })
}

// 删除教学方案
export function delTeachPlanPeriod(id) {
  return request({
    url: '/teach/teachPlanPeriod/' + id,
    method: 'delete'
  })
}

// 导出教学方案
export function exportTeachPlanPeriod(query) {
  return request({
    url: '/teach/teachPlanPeriod/export',
    method: 'get',
    params: query
  })
}